package com.jc.service.toy.impl;

import com.jc.base.page.Page;
import com.jc.base.ResultData;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.jc.dao.toy.ToyElementCatgoryDao;
import com.jc.domain.toy.ToyElementCatgory;
import com.jc.service.toy.ToyElementCatgoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jc.base.Assert;
import com.jc.repository.generator.utils.Condition;
import com.jc.repository.generator.utils.ConditionsExtend;
import com.jc.utils.CollectionUtils;

import java.util.List;

/**
 * @author
 * @create 2016-12-13 09:32:26
 * @description
 */

@Service
public class ToyElementCatgoryServiceImpl implements ToyElementCatgoryService {

    private static final Logger LOGGER = LoggerFactory.getLogger(ToyElementCatgoryServiceImpl.class);

    @Autowired
    private ToyElementCatgoryDao toyElementCatgoryDao;

    //this function automatic generated by application
    @Override
    public ToyElementCatgory queryToyElementCatgoryById(Long id) {
        return toyElementCatgoryDao.queryToyElementCatgoryById(id);
    }

    //this function automatic generated by application
    @Override
    public List<ToyElementCatgory> saveOrInsertList(List<ToyElementCatgory> toyElementCatgorys) {
        return toyElementCatgoryDao.saveOrInsertList(toyElementCatgorys);
    }

    //this function automatic generated by application
    @Override
    public ToyElementCatgory saveOrInsert(ToyElementCatgory toyElementCatgory) {
        return toyElementCatgoryDao.saveOrInsert(toyElementCatgory);
    }

    //this function automatic generated by application
    @Override
    public boolean deleteToyElementCatgoryById(Long id) {
        return toyElementCatgoryDao.deleteToyElementCatgoryById(id);
    }


}